import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
//导入自定义的样式
import '@/assets/css/icon.css';
import axios from "axios";
//导入echarts，需要先npm install echarts安装
import * as echarts from 'echarts'

Vue.config.productionTip = false
//添加Element-UI
Vue.use(ElementUI)
//全局注册，使用方法为:this.$echarts
Vue.prototype.$echarts = echarts
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8';
axios.defaults.headers.put['Content-Type'] = 'application/json;charset=UTF-8';
new Vue({
  router,
  store,
  Element,
  render: h => h(App)
}).$mount('#app')
